{* neleidziam administruoti, jei nera permissiono *}
{if $data.admins.cur.mod[1]}

<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F8F9F9">
	<tr>
		<td width="10"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td height="22" style="font-weight:bold">{t t='Administratorių valdymas'}</td>		
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="2" bgcolor="#D9DFE3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
</table>
{if $data.admins.cur.mod[1]}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="25">
		<table cellpadding="0" cellspacing="0">
			<tr>
				<td width="10" height="25"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				<td><img src="_tvs_system_core_/design/img/admin/create_new.gif"></td>		
				<td width="8"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				<td><a href="#" onClick="openCenteredOnOpenerWindow('index.php?admin=1&popup=6','element_new',400,450,1,0); return false" target="_self">{t t='Sukurti naują administratorių'}</a></td>
				<td width="8"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				<td width="1" bgcolor="#D3D9DC"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			</tr>
		</table>
		</td>		
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="2" bgcolor="#D9DFE3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
</table>

<!-- *  -->
{/if}


{foreach from=$data.admins.all item="el"}

{if ($data.admins.cur.mod[1] || $data.admins.cur.id==$el.id) }
	<!-- * -->
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
	<table width="100%" cellpadding="0" cellspacing="0"bgcolor="#F4F6F7">
		<tr>
			<td height="22" width="22"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>			
			<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			<td><a href="#" onClick="openCenteredOnOpenerWindow('index.php?admin=1&popup=7&id={$el.id}','element_new',400,450,1,0); return false"  class="blackNoUnderline">{$el.login} - {$el.admins01_fname} {$el.admins01_lname}</a></td>
			{if isset($_var.type) && $_var.type == 1}
				
			{elseif !$el.mod[1]}
			<td width="1">
			<table cellpadding="0" cellspacing="0">
				<tr>					
					<td width="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>							
					<td style="padding:0px 10px 0px 10px "><nobr><a onClick="openCenteredOnOpenerWindow('index.php?admin=1&popup=16&id={$el.id}','element_new',450,450,1,1); return false" href="#">{t t="Turinio valdymo apribojiimai"}</a></td>
					<td width="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				</tr>			
			</table>
			</td>
			{/if}
			<td align="right" width="1">			
			<table cellpadding="0" cellspacing="0">
				<tr>					
					<td width="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>							
					<td><a href="javascript:s_confirm('{t t='Ar tikrai norite ištrinti'}: &quot;{$el.login}&quot;','index.php?admin=1&ad={$el.id}&mod=admins&act=del&referer=index.php?admin=1','#') "><img src="_tvs_system_core_/design/img/icon_delete.gif" width="21" height="22"></a></td>
					<td width="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				</tr>			
			</table>
			</td>
		</tr>
	</table>
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="1" bgcolor="#D6DBDE"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
	<!-- /* -->
{/if}
{/foreach}

{/if}